package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoRole;
import com.yipao.db.domain.YipaoRoleExample;

/**
 * 角色
 * @author tianhao
 */
public interface RoleMapper {

    long countByExample(YipaoRoleExample example);


    int deleteByExample(YipaoRoleExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoRole record);


    int insertSelective(YipaoRole record);


    YipaoRole selectOneByExample(YipaoRoleExample example);


    YipaoRole selectOneByExampleSelective(@Param("example") YipaoRoleExample example, @Param("selective") YipaoRole.Column ... selective);


    List<YipaoRole> selectByExampleSelective(@Param("example") YipaoRoleExample example, @Param("selective") YipaoRole.Column ... selective);


    List<YipaoRole> selectByExample(YipaoRoleExample example);


    YipaoRole selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoRole.Column ... selective);


    YipaoRole selectByPrimaryKey(Integer id);


    YipaoRole selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoRole record, @Param("example") YipaoRoleExample example);


    int updateByExample(@Param("record") YipaoRole record, @Param("example") YipaoRoleExample example);


    int updateByPrimaryKeySelective(YipaoRole record);


    int updateByPrimaryKey(YipaoRole record);


    int logicalDeleteByExample(@Param("example") YipaoRoleExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
